{"componentChunkName":"component---src-templates-post-tsx","path":"/npm-check-updates/","result":{"data":{"markdownRemark":{"html":"<p>npm에서 dependency를 최신 버전으로 업데이트 하려면 하나씩 따로 업데이트해줘야 하는데.\n그냥 한번에 업데이트 하는 방법은 없을까?</p>\n<h2 id=\"npm-check-updates-를-이용한-업데이트\" style=\"position:relative;\"><a href=\"#npm-check-updates-%EB%A5%BC-%EC%9D%B4%EC%9A%A9%ED%95%9C-%EC%97%85%EB%8D%B0%EC%9D%B4%ED%8A%B8\" aria-label=\"npm check updates 를 이용한 업데이트 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>npm-check-updates 를 이용한 업데이트</h2>\n<h3 id=\"1-npm-check-updates-전역-설치\" style=\"position:relative;\"><a href=\"#1-npm-check-updates-%EC%A0%84%EC%97%AD-%EC%84%A4%EC%B9%98\" aria-label=\"1 npm check updates 전역 설치 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>1. npm-check-updates 전역 설치</h3>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\">$ <span class=\"token function\">npm</span> <span class=\"token function\">install</span> -g npm-check-updates</code></pre></div>\n<h3 id=\"2-npm-check-updates-실행하기\" style=\"position:relative;\"><a href=\"#2-npm-check-updates-%EC%8B%A4%ED%96%89%ED%95%98%EA%B8%B0\" aria-label=\"2 npm check updates 실행하기 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>2. npm-check-updates 실행하기</h3>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\">$ ncu -u\n\n// 완료 되었으면 아래 명령어를 실행한다.\n\n$ <span class=\"token function\">npm</span> <span class=\"token function\">install</span></code></pre></div>\n<h3 id=\"3-그러나-주의하자\" style=\"position:relative;\"><a href=\"#3-%EA%B7%B8%EB%9F%AC%EB%82%98-%EC%A3%BC%EC%9D%98%ED%95%98%EC%9E%90\" aria-label=\"3 그러나 주의하자 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>3. 그러나 주의하자</h3>\n<p>모든 의존성을 한번에 업데이트 하는 것은 프로젝트 관점에서 굉장히 큰 리스크를 가지고 있는 작업이다.\n하지만 여러가지 보일러플레이트를 github에서 관리해야할 때에는 분명 일괄 업데이트 기능도 필요하기 마련이다.\n강제로 최신버전으로 업데이트된 의존성들 사이의 호환성은 보장되지 않기 때문에 주의해서 사용하자</p>\n<hr>\n<h4 id=\"reference\" style=\"position:relative;\"><a href=\"#reference\" aria-label=\"reference permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Reference</h4>\n<p><a href=\"https://ahribori.com/article/5a7996097eaff3172844ddb9\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https://ahribori.com/article/5a7996097eaff3172844ddb9</a></p>","excerpt":"npm에서 dependency를 최신 버전으로 업데이트 하려면 하나씩 따로 업데이트해줘야 하는데.\n그냥 한번에 업데이트 하는 방법은 없을까? npm-check-updates 를 이용한 업데이트 1. npm-check-updates 전역 설치 2. n…","tableOfContents":"<ul>\n<li>\n<p><a href=\"/npm-check-updates/#npm-check-updates-%EB%A5%BC-%EC%9D%B4%EC%9A%A9%ED%95%9C-%EC%97%85%EB%8D%B0%EC%9D%B4%ED%8A%B8\">npm-check-updates 를 이용한 업데이트</a></p>\n<ul>\n<li><a href=\"/npm-check-updates/#1-npm-check-updates-%EC%A0%84%EC%97%AD-%EC%84%A4%EC%B9%98\">1. npm-check-updates 전역 설치</a></li>\n<li><a href=\"/npm-check-updates/#2-npm-check-updates-%EC%8B%A4%ED%96%89%ED%95%98%EA%B8%B0\">2. npm-check-updates 실행하기</a></li>\n<li><a href=\"/npm-check-updates/#3-%EA%B7%B8%EB%9F%AC%EB%82%98-%EC%A3%BC%EC%9D%98%ED%95%98%EC%9E%90\">3. 그러나 주의하자</a></li>\n</ul>\n</li>\n</ul>","fields":{"slug":"/npm-check-updates/"},"frontmatter":{"title":"pakage.json 종속성을 최신 버전으로 업데이트하기","date":"Aug 13, 2020","tags":["npm","Node.js"],"keywords":["update","npm","node.js"],"update":"Jan 01, 0001"}}},"pageContext":{"slug":"/npm-check-updates/","series":[],"lastmod":"2020-08-13"}},"staticQueryHashes":["2027115977","694178885"]}